unit uCadUsuario;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, uCadPadrao, StdCtrls, Buttons, Mask, DBCtrls, DB;

type
  TfCadUsuario = class(TfCadastroPadrao)
    DataSource1: TDataSource;
    Label2: TLabel;
    DBEdit2: TDBEdit;
    Label3: TLabel;
    edSenha: TMaskEdit;
    procedure BitBtn1Click(Sender: TObject);
    procedure BitBtn2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fCadUsuario: TfCadUsuario;

implementation

uses uDm;

{$R *.dfm}

procedure TfCadUsuario.BitBtn1Click(Sender: TObject);
begin
  inherited;
  dm.qryUsuarioSENHA.AsString := edSenha.Text;
  dm.qryUsuario.Post;
  close;  
end;

procedure TfCadUsuario.BitBtn2Click(Sender: TObject);
begin
  inherited;
  dm.qryUsuario.Cancel;
  close;
end;

end.
